using System.Collections.Generic;
using Magiq.Sql.Tests.TestModel;

namespace Magiq.Sql.Tests
{
    public class CompositePkTestDomain
    {
        public CompositePkTestDomain()
        {
            Parents = new List<CompositePkParent>();
            Children = new List<CompositePkChild>();

            for (var i = 0; i < 15; i++)
            {
                Children.Add(new CompositePkChild
                                 {
                                     Prop = "test" + i,
                                     Id1 = i,
                                     Id2 = i + "la"
                                 });
            }

            for (var i = 8; i < 15; i++)
            {
                Parents.Add(new CompositePkParent
                                {
                                    Prop = "sarasa" + i,
                                    Child = Children[i],
                                });
            }
            Parents.Add(new CompositePkParent
                            {
                                Prop = "sarasa",
                            });
        }

        public List<CompositePkParent> Parents { get; private set; }

        public List<CompositePkChild> Children { get; private set; }
    }
}